
<%@ page import="ch.vd.dec.selt.petale.TypologieEmolument" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title><g:message code="typologieEmolument.create" default="Create TypologieEmolument" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home" /></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="typologieEmolument.list" default="TypologieEmolument List" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="typologieEmolument.create" default="Create TypologieEmolument" /></h1>
            <g:if test="${flash.message}">
            <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
            </g:if>
            <g:hasErrors bean="${typologieEmolumentInstance}">
            <div class="errors">
                <g:renderErrors bean="${typologieEmolumentInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="base"><g:message code="typologieEmolument.base" default="Base" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: typologieEmolumentInstance, field: 'base', 'errors')}">
                                    <g:select name="base.id" from="${ch.vd.dec.selt.petale.BaseLegale.list()}" optionKey="id" value="${typologieEmolumentInstance?.base?.id}" noSelection="['null': '']" onchange="updateSelect()"/>

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="aut"><g:message code="typologieEmolument.aut" default="Aut" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: typologieEmolumentInstance, field: 'aut', 'errors')}">
                                    <g:select name="aut.id" from="${ch.vd.dec.selt.petale.TypeAutorisation.list()}" optionKey="id" value="${typologieEmolumentInstance?.aut?.id}" noSelection="['null': '']" onchange="updateSelect()"/>

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cat"><g:message code="typologieEmolument.cat" default="Cat" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: typologieEmolumentInstance, field: 'cat', 'errors')}">
                                    <g:select name="cat.id" from="${ch.vd.dec.selt.petale.Categorie.list()}" optionKey="id" value="${typologieEmolumentInstance?.cat?.id}" noSelection="['null': '']" onchange="updateSelect()"/>

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="subcat"><g:message code="typologieEmolument.subcat" default="Subcat" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: typologieEmolumentInstance, field: 'subcat', 'errors')}">
                                    <g:select name="subcat.id" from="${ch.vd.dec.selt.petale.SousCategorie.list()}" optionKey="id" value="${typologieEmolumentInstance?.subcat?.id}" noSelection="['null': '']" onchange="updateSelect()"/>

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="pre"><g:message code="typologieEmolument.pre" default="Pre" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: typologieEmolumentInstance, field: 'pre', 'errors')}">
                                    <g:select name="pre.id" from="${ch.vd.dec.selt.petale.Prestation.list()}" optionKey="id" value="${typologieEmolumentInstance?.pre?.id}" noSelection="['null': '']" onchange="updateSelect()"/>

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="emo"><g:message code="typologieEmolument.emo" default="Emo" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: typologieEmolumentInstance, field: 'emo', 'errors')}">
                                    <g:textField name="emo" value="${fieldValue(bean: typologieEmolumentInstance, field: 'emo')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="emo_saiso"><g:message code="typologieEmolument.emo_saiso" default="Emosaiso" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: typologieEmolumentInstance, field: 'emo_saiso', 'errors')}">
                                    <g:textField name="emo_saiso" value="${fieldValue(bean: typologieEmolumentInstance, field: 'emo_saiso')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="priorite"><g:message code="typologieEmolument.priorite" default="Priorite" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: typologieEmolumentInstance, field: 'priorite', 'errors')}">
                                    <g:select name="priorite" from="${1..32}" value="${typologieEmolumentInstance?.priorite}"  />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="uniqueKey"><g:message code="typologieEmolument.uniqueKey" default="Unique Key" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: typologieEmolumentInstance, field: 'uniqueKey', 'errors')}">
                                    <g:textField name="uniqueKey" maxlength="30" value="${fieldValue(bean: typologieEmolumentInstance, field: 'uniqueKey')}" />

                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'create', 'default': 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
